<?php
namespace Api\Controller;

/**
 * 维修工
 */
class MaintainerController extends ApiController
{
    protected $noCheck = [];

    function _initialize() {
        parent::_initialize();
    }

    /**
     * 点赞
     */
    public function like()
    {
        $id = I('id');
        $res = like_log($this->uid, 6 , $id);
        if($res['status']){
            $this->ajaxReturn(['s'=>true, 'm'=>'点赞成功']);
        }else{
            $this->ajaxReturn(['s'=>false, 'm'=>$res['msg']]);
        }
    }
}